<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link rel="shortcut icon" type="image/x-icon" href="./img/favicon.ico">
    <link rel="stylesheet" href="./css/saleHotel.css">
    <link rel="stylesheet" href="./font-awesome-4.7.0/css/font-awesome.min.css">
    <link rel="stylesheet" href="https://heerey525.github.io/layui-v2.4.3/layui-v2.4.5/css/layui.css">
    <script src="https://cdn.bootcdn.net/ajax/libs/jquery/3.6.0/jquery.min.js"></script>
    <script src="https://heerey525.github.io/layui-v2.4.3/layui-v2.4.5/layui.js"></script>
    <title>国际特价酒店[预订]_国外特价酒店[预订] - 海外特价酒店 - LastMinute - 穷游网</title>
</head>

<body>
    <div class="sale-hotel">
      <nav class="poornav">
        <div class="header-left">
            <img src="https://fes.qyerstatic.com/FjlFyKxqo22aN-6dwg1n38LW9j3E?imageslim" class="imgs" alt="">
            <ul class="q-nav">
              <li><a href="" class="nav-span">目的地</a></li>
              <li><a href="./jinnang.html" class="nav-span">锦囊</a></li>
              <li class="list-layer list-sns"><a href="" class="nav-span">
                  <span>社区</span>
                  <i class="fa fa-angle-down"></i>
                </a>
                <!-- 社区tab切换 -->
                <div class="q-layer q-layer-nav q-layer-arrow arr">
                  <ul>
                    <li class="nav-list-layer list-discuss"><a href="//bbs.qyer.com/">
                        <span> <a href="./forum.html">旅行论坛</a> </span>
                        <div style="display:inline;"><i class="fa fa-angle-right fa-right"></i></div>
                      </a>
                      <div class="q-layer q-layer-section" style="display:none;">
                        <div class="q-layer">
                          <div class="section-title"><a href="//bbs.qyer.com" class="more"><span>全部版块</span>
                              <i class="fa fa-angle-right fa-right"></i></a><span>热门版块</span></div>
                          <dl class="section-item">
                            <dt>兴趣小组</dt>
                            <dd><a href="//bbs.qyer.com/forum-2-1.html">结伴同游</a>
                              <a href="//bbs.qyer.com/forum-3-1.html">签证</a>
                              <a href="//bbs.qyer.com/forum-22-1.html">旅行摄影</a>
                              <a href="//bbs.qyer.com/forum-88-1.html">潜水俱乐部</a>
                              <a href="//bbs.qyer.com/forum-122-1.html">带孩子旅行</a>
                              <a href="//bbs.qyer.com/forum-33-1.html">自驾</a>
                            </dd>
                          </dl>
                          <dl class="section-item">
                            <dt>穷游欧洲</dt>
                            <dd><a href="//bbs.qyer.com/forum-14-1.html">法国/摩纳哥</a><a
                                href="//bbs.qyer.com/forum-12-1.html">德国</a><a
                                href="//bbs.qyer.com/forum-16-1.html">英国/爱尔兰</a><a
                                href="//bbs.qyer.com/forum-15-1.html">瑞士/列支敦士登</a><a d
                                href="//bbs.qyer.com/forum-162-1.html">土耳其</a><a
                                href="//bbs.qyer.com/forum-25-1.html">挪威/瑞典/芬兰/丹麦/冰岛</a><a
                                href="//bbs.qyer.com/forum-13-1.html">意大利/梵蒂冈/圣马力诺/马耳他</a></dd>
                          </dl>
                          <dl class="section-item">
                            <dt>穷游亚洲</dt>
                            <dd><a href="//bbs.qyer.com/forum-52-1.html">台湾</a>
                              <a href="//bbs.qyer.com/forum-57-1.html">日本</a>
                              <a href="//bbs.qyer.com/forum-106-1.html">泰国</a>
                              <a href="//bbs.qyer.com/forum-164-1.html">新加坡</a>
                              <a href="//bbs.qyer.com/forum-165-1.html">斯里兰卡</a>
                              <a href="//bbs.qyer.com/forum-163-1.html">香港/澳门</a>
                              <a href="//bbs.qyer.com/forum-108-1.html">马来西亚/文莱</a>
                              <a href="//bbs.qyer.com/forum-175-1.html">柬埔寨</a>
                              <a href="//bbs.qyer.com/forum-104-1.html">马尔代夫</a>
                              <a href="//bbs.qyer.com/forum-177-1.html">缅甸</a>
                              <a href="//bbs.qyer.com/forum-59-1.html">伊朗</a>
                              <a href="//bbs.qyer.com/forum-103-1.html">印度/孟加拉</a>
                            </dd>
                          </dl>
                          <dl class="section-item">
                            <dt>穷游美洲</dt>
                            <dd><a href="//bbs.qyer.com/forum-54-1.html">加拿大</a>
                              <a href="//bbs.qyer.com/forum-53-1.html">美国</a>
                              <a href="//bbs.qyer.com/forum-168-1.html">中美</a>
                              <a href="//bbs.qyer.com/forum-55-1.html">南美/南极</a>
                            </dd>
                          </dl>
                          <dl class="section-item">
                            <dt>穷游大洋洲</dt>
                            <dd><a href="//bbs.qyer.com/forum-56-1.html">澳大利亚</a>
                              <a href="//bbs.qyer.com/forum-83-1.html">新西兰</a>
                              <a href="//bbs.qyer.com/forum-178-1.html">太平洋海岛</a>
                            </dd>
                          </dl>
                          <dl class="section-item">
                            <dt>穷游非洲</dt>
                            <dd><a href="//bbs.qyer.com/forum-173-1.html">东非地区</a>
                              <a href="//bbs.qyer.com/forum-174-1.html">非洲海岛</a>
                              <a href="//bbs.qyer.com/forum-86-1.html">北非地区</a>
                              <a href="//bbs.qyer.com/forum-60-1.html">非洲其他国家</a>
                            </dd>
                          </dl>
                          <div></div>
    
                        </div>
                      </div>
                    </li>
                    <li class="nav-list-layer"><a href="./questions.html"><span>旅行问答</span>
                      </a> </li>
                    <li class="nav-list-layer"><a href="./column.html"><span>旅行专栏</span>
    
                      </a>
    
                    </li>
                    <li class="nav-list-layer"><a href="./poor-experience.html"><span>旅行生活分享平台</span>
                        <!---->
                      </a>
                      <!---->
                    </li>
                    <li class="nav-list-layer"><a
                        href="https://qlab.taobao.com/index.htm?spm=2013.1.w5002-20955034123.2.67456028h2dyyo"><span>JNE旅行生活美学</span>
                        <!---->
                      </a>
                      <!---->
                    </li>
                    <li class="nav-list-layer"><a href="//bbs.qyer.com/forum-2-1.html"><span>Biu伴（原结伴同游）</span>
                        <!---->
                      </a>
                      <!---->
                    </li>
                    <li class="nav-list-layer"><a href="./responsibleTravel.html"><span>负责任的旅行</span>
                        <!---->
                      </a>
                      <!---->
                    </li>
                    <li class="nav-list-layer"><a href="./plan.html"><span>特别策划</span>
                        <!---->
                      </a>
                      <!---->
                    </li>
                    <li class="nav-list-layer"><a href="./shiping.html"><span>旅行精选视频</span></a>
                      <!---->
                    </li>
                  </ul>
                </div>
              </li>
              <li><a href="./xingcheng.html" class="nav-span">行程助手</a></li>
              <li class="list-layer list-shop"><a href="" class="nav-span">
                  <span>商城</span>
                  <i class="fa fa-angle-down"></i>
                  <span class="line-flag">
                    <img src="./img/redflag.gif" alt="" class="flag-icon">
                    <i class="flag"></i>
                  </span>
                </a>
                <!-- 商城tab切换 -->
                <div class="q-layer q-layer-nav q-layer-arrow arr1">
                  <ul>
                    <li class="nav-list-layer"><a href="./free.html"><span>机酒自由行</span></a></li>
                    <li class="nav-list-layer"><a><span>当地玩乐</span></a></li>
                    <li class="nav-list-layer"><a><span>签证</span></a></li>
                    <li class="nav-list-layer"><a href="./insurance.html"><span>保险</span></a></li>
                    <li class="nav-list-layer"><a><span>租车自驾</span></a></li>
                    <li class="nav-list-layer"><a href="./ship.html"><span>邮轮</span></a></li>
                    <li class="nav-list-layer"><a><span>私人定制</span></a></li>
                    <li class="nav-list-layer"><a><span>欧洲铁路</span></a></li>
                  </ul>
                </div>
              </li>
              <li class="list-layer list-hotel"><a href="./hotel.html" class="nav-span">
                  <span style="margin-left: 40px;">酒店·民宿</span>
                  <i class="fa fa-angle-down"></i>
                </a>
                <div class="q-layer q-layer-nav q-layer-arrow arr2" style="margin-left: 40px;">
                  <ul>
                    <li class="nav-list-layer"><a><span>酒店</span></a></li>
                  </ul>
                </div>
              </li>
              <li><a href="./saleHotel.html" class="nav-span">
                  <span>特价酒店</span>
                  <span class="line-flag">
                    <img src="./img/redflag2.png" alt="" class="flag-icon">
                    <i class="flag"></i>
                  </span>
                </a></li>
            </ul>
        </div>
        <div class="header-right">
            <div class="nav-search">
              <div class="nav-ipt">
                <input type="text" class="txt-search">
                <button class="btn-search">
                  <i class="fa fa-search"></i>
                </button>
              </div>
            </div>
            <span class="nav-cut">|</span>
            <div class="nav-user">
              <div class="login-wrap">
                <a href="https://passport.qyer.com/oauth?using=taobao&amp;ref=https%3A%2F%2Fwww.qyer.com%2F"
                  class="important">
                  <img src="./img/taobao1.png" alt=""></a>
                <a href="https://passport.qyer.com/oauth?using=qq&amp;ref=https%3A%2F%2Fwww.qyer.com%2F">
                  <i class="fa fa-qq"></i></a>
                <a href="https://passport.qyer.com/oauth?using=weixin&amp;ref=https%3A%2F%2Fwww.qyer.com%2F">
                  <i class="fa fa-wechat"></i></a>
                <a href="https://passport.qyer.com/oauth?using=weibo&amp;ref=https%3A%2F%2Fwww.qyer.com%2F">
                  <i class="fa fa-weibo"></i></a>
                <a href="https://passport.qyer.com/register/mobile?ref=https%3A%2F%2Fwww.qyer.com%2F"
                  class="login-link">注册</a><a href="https://passport.qyer.com/login?ref=https%3A%2F%2Fwww.qyer.com%2F"
                  class="login-link">登录</a>
              </div>
            </div>
          </div>
        </div>
    </nav>
        <div class="s-content">
            <div class="title">
                <h1>
                    <strong>穷游·Real便宜</strong>
                    今日酒店特惠
                </h1>
                <h2>帮你筛选全网特价酒店</h2>
            </div>
            <div class="s-search">
                <div class="s-input">
                    <div class="left-ipt">
                        <input class="city" type="text" value="曼谷">
                    </div>
                    <div class="rgt-ipt">
                        <p>
                            <span class="left-date">
                                入住日期
                                <strong>5月6日</strong>
                                <strong>周四</strong>
                            </span>
                            <span class="day">
                                15晚
                            </span>
                            <span class="rgt-date">
                                退房日期
                                <strong>5月21日</strong>
                                <strong>周五</strong>
                            </span>
                        </p>
                        <div class="rgt-cover">
                            <div class="layui-form">
                                <div class="layui-inline">
                                    <div class="layui-input-inline">
                                        <input type="text" class="layui-input" id="test">
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                    <button>
                        <i class="fa fa-search"></i>
                        搜索特惠！
                    </button>
                </div>
                <div class="s-city">
                    <p onclick="getData()">热门特价城市
                        <a data-index="0">曼谷</a>
                        <a data-index="1">京都</a>
                        <a data-index="2">香港</a>
                        <a data-index="3">巴黎</a>
                        <a data-index="4">纽约</a>
                        <a data-index="5">大阪</a>
                        <a data-index="6">伦敦</a>
                        <a data-index="7">旧金山</a>
                    </p>
                </div>
            </div>
            <div class="s-bottom">
                <div class="s-sort">
                    <div>
                        <span class="radioStock" onclick="sort()">
                            <input type="radio" id="a" name=radio value="默认排序" checked>
                            <label for="a"><span>默认排序</span></label>
                        </span>
                        <span class="radioStock" onclick="low()">
                            <input type="radio" id="b" name="radio" value="低价优先">
                            <label for="b"><span>低价优先</span></label>
                        </span>
                        <span class="radioStock">
                            <input type="radio" id="c" name="radio" value="折扣力度优先">
                            <label for="c"><span>折扣力度优先</span></label>
                        </span>
                    </div>
                </div>
                <div class="hotel-detail">
                </div>
            </div>
        </div>
        <div class="qyer_footer">
            <div class="topline"></div>
            <div class="content">
                <p class="nav">
                    <a href="//nav.qyer.com/about" target="_blank" rel="nofollow" data-bn-ipg="foot-about-1">穷游简介</a>
                    <a href="//nav.qyer.com/partner" target="_blank" rel="nofollow" data-bn-ipg="foot-about-3">合作伙伴</a>
                    <a href="//nav.qyer.com/job" target="_blank" rel="nofollow" data-bn-ipg="foot-join-1">加入我们</a>
                    <a href="//nav.qyer.com/tyro" target="_blank" rel="nofollow" data-bn-ipg="foot-help-1">新手上路</a>
                    <a href="//m.qyer.com/guide/page/aEKs7ooblmk/?lk=1" target="_blank" rel="nofollow"
                        data-bn-ipg="foot-help-2">使用帮助</a>
                    <a href="//www.qyer.com/sitemap.html" target="_blank" data-bn-ipg="foot-help-4">网站地图</a>
                    <a href="//nav.qyer.com/member" target="_blank" rel="nofollow" data-bn-ipg="foot-clause-1">会员条款</a>
                    <a href="//nav.qyer.com/bbsguide" target="_blank" rel="nofollow"
                        data-bn-ipg="foot-clause-2">社区指南</a>
                    <a href="//nav.qyer.com/copyright" target="_blank" rel="nofollow"
                        data-bn-ipg="foot-clause-3">版权声明</a>
                    <a href="//nav.qyer.com/exemption" target="_blank" rel="nofollow"
                        data-bn-ipg="foot-clause-4">免责声明</a>
                    <a href="//nav.qyer.com/contact" target="_blank" rel="nofollow" data-bn-ipg="foot-about-2">联系我们</a>
                </p>
                <p class="info">
                    2004-2021 ? 穷游网? qyer.com All rights reserved. Version v5.57 京ICP备12003524号
                    <a target="_blank"
                        href="http://www.beian.gov.cn/portal/registerSystemInfo?recordcode=11010502041090"><img
                            height="14" src="http://fes.qyerstatic.com/FpDv3ta6ot3lmanWsTh5c-jmSSPq"
                            style="vertical-align: -2px;margin-right: 3px;">京公网安备11010502041090</a> 京ICP证140673号
                    <a target="_blank" style="color:inherit;" href="//static.qyer.com/images/yyzz.jpg">营业执照</a>
                    <a target="_blank" style="color:inherit;" href="//static.qyer.com/images/jyxkz.jpg">经营许可证</a>
                </p>
                <dl class="qyer_footer_links">
                    <dt>友情链接：</dt>
                    <dd>
                        <a target="_blank" href="http://www.juzigo.com" data-bn-ipg="foot-hand-1">
                            交通查询
                        </a>
                    </dd>
                    <dd>
                        <a target="_blank" href="http://www.youyuwei.com/" data-bn-ipg="foot-hand-2">
                            余味全球美食
                        </a>
                    </dd>
                    <dd>
                        <a target="_blank" href="http://www.dili360.com/about/index/links.htm"
                            data-bn-ipg="foot-hand-3">
                            中国国家地理
                        </a>
                    </dd>
                    <dd>
                        <a target="_blank" href="http://www.taiwandao.tw/" data-bn-ipg="foot-hand-4">
                            台湾自由行
                        </a>
                    </dd>
                    <dd>
                        <a target="_blank" href="http://cn.toursforfun.com/" data-bn-ipg="foot-hand-5">
                            美国旅游
                        </a>
                    </dd>
                    <dd>
                        <a target="_blank" href="http://abroad.cncn.com/" data-bn-ipg="foot-hand-6">
                            出境旅游
                        </a>
                    </dd>
                    <dd>
                        <a target="_blank" href="http://bj.tuniu.com/" data-bn-ipg="foot-hand-7">
                            北京旅游网
                        </a>
                    </dd>
                </dl>
            </div>
        </div>
    </div>
</body>
<script>
     // 旅行论坛tab切换
     $(".list-discuss").mouseover(function () {
      $(".q-layer-section").css("display", "block")
    })
    $(".list-discuss").mouseout(function () {
      $(".q-layer-section").css("display", "none")
    })
    //社区tab切换
    $(".list-sns").mouseover(function () {
      $(".arr").css("display", "block")
    })
    $(".list-sns").mouseout(function () {
      $(".arr").css("display", "none")
    })
    //商城tab切换
    $(".list-shop").mouseover(function () {
      $(".arr1").css("display", "block")
    })
    $(".list-shop").mouseout(function () {
      $(".arr1").css("display", "none")
    })
    //酒店tab
    $(".list-hotel").mouseover(function () {
      $(".arr2").css("display", "block")
    })
    $(".list-hotel").mouseout(function () {
      $(".arr2").css("display", "none")
    })
    layui.use('laydate', function () {
        var laydate = layui.laydate;
        laydate.render({
            elem: '#test',
            type: 'datetime',
            range: true
        });
    })
    function getCity(city = "mangkok") {
        $.ajax({
            url: 'http://localhost:8080/' + city,
            type: 'GET',
            success: function (data) {
                let str = '';
                data.forEach(item => {
                    str += `
                    <div class="hotel-item">
                        <a href="#">
                            <div class="image">
                                <img src="${item.img}" alt="">
                            </div>
                            <div class="item-text">
                                <h4>${item.cn_name}</h4>
                                <h5>${item.en_name}</h5>
                                <p class="star">
                                    <span class="grade">
                                        <strong>${item.grade}</strong>
                                        ${item.comment}
                                    </span>
                                    <span class="num">${item.star}</span>
                                    <del>￥<span>${item.oprice}</span></del>
                                </p>
                                <p class="bottom">
                                    <span class="address">
                                        <i class="fa fa-map-marker"></i>
                                        ${item.address}
                                    </span>
                                    <span class="price">
                                        <strong>￥</strong>${item.nprice}<i>起</i>
                                    </span>
                                </p>
                            </div>
                        </a>
                    </div>
                    `
                });
                $(".hotel-detail").html(str)
            },
            error: function (err) {
                console.log(err);
            }
        })
    }
    getCity();
    function getLow(c) {
        $.ajax({
            url: 'http://localhost:8080/lowPrice',
            type: 'GET',
            data: {
                city: c
            },
            success: function (data) {
                let str = '';
                data.forEach(item => {
                    str += `
                    <div class="hotel-item">
                        <a href="#">
                            <div class="image">
                                <img src="${item.img}" alt="">
                            </div>
                            <div class="item-text">
                                <h4>${item.cn_name}</h4>
                                <h5>${item.en_name}</h5>
                                <p class="star">
                                    <span class="grade">
                                        <strong>${item.grade}</strong>
                                        ${item.comment}
                                    </span>
                                    <span class="num">${item.star}</span>
                                    <del>￥<span>${item.oprice}</span></del>
                                </p>
                                <p class="bottom">
                                    <span class="address">
                                        <i class="fa fa-map-marker"></i>
                                        ${item.address}
                                    </span>
                                    <span class="price">
                                        <strong>￥</strong>${item.nprice}<i>起</i>
                                    </span>
                                </p>
                            </div>
                        </a>
                    </div>
                    `
                });
                $(".hotel-detail").html(str)
            },
            error: function (err) {
                console.log(err);
            }
        })
    }
    function getData() {
        $(".left-ipt input").val(event.target.innerHTML);
        $("#a").attr("checked");
        let city = event.target.innerHTML == '曼谷' ? 'mangkok' : event.target.innerHTML == '京都' ? 'tokyo' : 'other';
        localStorage.setItem('city',city)
        getCity(city);
    }
   function sort() {
      getCity(localStorage.getItem('city'));
    }
    function low() {
      getLow(localStorage.getItem('city'));
    }

</script>

</html>